﻿@model NFine.Domain.Entity.SystemManage.UserEntity
@{
    ViewBag.Title = "MemberInfo";
    Layout = "~/Views/Shared/_Form.cshtml";
}

<form id="form1">
    <div style="padding-top: 20px; margin-right: 30px;">
        <table class="form">

            <tr>
                <th class="formTitle">推荐人</th>
                <td class="formValue" colspan="1">
                    <input id="F_OrganizeId" name="F_OrganizeId" type="text" class="form-control" disabled="disabled" value="@Model.F_OrganizeId" />
                </td>
            </tr>
            <tr>
                <th class="formTitle">账号</th>
                <td class="formValue" colspan="1">
                    <input id="F_Account" name="F_Account" type="text" class="form-control required" disabled="disabled" placeholder="请输入账号" value="@Model.F_Account" />
                </td>
            </tr>
            <tr>
                <th class="formTitle">姓名</th>
                <td class="formValue" colspan="1">
                    <input type="text" class="form-control required" disabled="disabled" placeholder="请输入姓名" value="@Model.F_RealName" />
                </td>
            </tr>
            <tr>
                <th class="formTitle">性别</th>
                <td class="formValue" colspan="1">
                    <select id="F_Gender" name="F_Gender" class="form-control required">
                        @if (Model.F_Gender.Value)
                        {
                            <option value="true" selected="selected">男</option>
                            <option value="false">女</option>
                        }
                        else
                        {
                            <option value="true">男</option>
                            <option value="false" selected="selected">女</option>
                        }

                    </select>
                </td>
            </tr>
            <tr>
                <th class="formTitle">身份证号</th>
                <td class="formValue" colspan="1">
                    <input class="form-control required isIdCards" placeholder="请输入身份证号" disabled="disabled" value="@Model.F_DepartmentId" />
                </td>
            </tr>
            <tr>
                <th class="formTitle">手机</th>
                <td class="formValue" colspan="1">
                    <input id="F_MobilePhone" name="F_MobilePhone" type="text" class="form-control isMobile" value="@Model.F_MobilePhone" />
                </td>
            </tr>
            <tr>
                <th class="formTitle">生日</th>
                <td class="formValue" colspan="1">
                    <input id="F_Birthday" name="F_Birthday" type="text" class="form-control input-wdatepicker" onfocus="WdatePicker()"  value="@(Model.F_Birthday.HasValue ? Model.F_Birthday.Value.ToString("yyyy-MM-dd") : "")" />
                </td>
            </tr>
            <tr>
                <th class="formTitle">微信</th>
                <td class="formValue" colspan="1">
                    <input id="F_WeChat" name="F_WeChat" type="text" class="form-control" value="@Model.F_WeChat" />
                </td>
            </tr>
            <tr>
                <th class="formTitle">邮箱</th>
                <td class="formValue" colspan="1">
                    <input id="F_Email" name="F_Email" type="text" class="form-control email" value="@Model.F_Email" />
                </td>
            </tr>
            <tr>
                <th class="formTitle" valign="top" style="padding-top: 5px;">
                    备注
                </th>
                <td class="formValue" colspan="2">
                    <textarea id="F_Description" name="F_Description" class="form-control" style="height: 60px;">@Model.F_Description</textarea>
                </td>
            </tr>

            <tr>
                <td colspan="2">
                    <div class="layui-layer-btn">
                        <a class="layui-layer-btn0 btn btn-primary" style="float: right" onclick="ChangeMemberInfo()">确认</a>
                    </div>
                </td>
            </tr>

        </table>
    </div>
</form>
    <script type="text/javascript">

        $(function () {

        });

        function ChangeMemberInfo() {

            
            $.submitForm({
                url: "/Home/UpdateMemberInfo",
                param: $("#form1").formSerialize(),
                success: function () {
                }
            });

        }

    </script>
